Soru & Cevap

HATAYI BULAMIYORUM YARDIM EDER MISINIZ?

24.03.2018 - 06:39
03-24 18:33:28.841 11912-11912/com.example.android.kamera E/AndroidRuntime: FATAL EXCEPTION: main
                                                                            Process: com.example.android.kamera, PID: 11912
                                                                            java.lang.OutOfMemoryError: Failed to allocate a 196390668 byte allocation with 4194304 free bytes and 135MB until OOM
                                                                                at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
                                                                                at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
                                                                                at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:655)
                                                                                at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:488)
                                                                                at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:1085)
                                                                                at android.content.res.Resources.createFromResourceStream(Resources.java:3302)
                                                                                at android.content.res.Resources.loadDrawableForCookie(Resources.java:3028)
                                                                                at android.content.res.Resources.loadDrawable(Resources.java:2858)
                                                                                at android.content.res.MiuiResources.loadDrawable(MiuiResources.java:388)
                                                                                at android.content.res.TypedArray.getDrawable(TypedArray.java:872)
                                                                                at android.widget.ImageView.<init>(ImageView.java:152)
                                                                                at android.widget.ImageView.<init>(ImageView.java:140)
                                                                                at android.support.v7.widget.AppCompatImageView.<init>(AppCompatImageView.java:72)
                                                                                at android.support.v7.widget.AppCompatImageView.<init>(AppCompatImageView.java:68)
                                                                                at android.support.v7.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:106)
                                                                                at android.support.v7.app.AppCompatDelegateImplV9.createView(AppCompatDelegateImplV9.java:1024)
                                                                                at android.support.v7.app.AppCompatDelegateImplV9.onCreateView(AppCompatDelegateImplV9.java:1081)
                                                                                at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:750)
                                                                                at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:708)
                                                                                at android.view.LayoutInflater.rInflate(LayoutInflater.java:839)
                                                                                at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:802)
                                                                                at android.view.LayoutInflater.rInflate(LayoutInflater.java:842)
                                                                                at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:802)
                                                                                at android.view.LayoutInflater.inflate(LayoutInflater.java:519)
                                                                                at android.view.LayoutInflater.inflate(LayoutInflater.java:427)
                                                                                at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
                                                                                at android.support.v7.app.AppCompatDelegateImplV9.setContentView(AppCompatDelegateImplV9.java:287)
                                                                                at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)
                                                                                at com.example.android.kamera.Main2Activity.onCreate(Main2Activity.java:11)
                                                                                at android.app.Activity.performCreate(Activity.java:6342)
                                                                                at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1113)
                                                                                at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2523)
                                                                                at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2636)
                                                                                at android.app.ActivityThread.access$1000(ActivityThread.java:180)
                                                                                at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1494)
                                                                                at android.os.Handler.dispatchMessage(Handler.java:111)
                                                                                at android.os.Looper.loop(Looper.java:207)
                                                                                at android.app.ActivityThread.main(ActivityThread.java:5811)
                                                                                at java.lang.reflect.Method.invoke(Native Method)
                                                                                at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
                                                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:768)

 

11 Görüntülenme

1 Cevap

Sitedeki sorulara cevap verebilmek için giriş yapın ya da üye olun.

picture-83215-1466292306.jpg
farukjaa23
26.03.2018 - 11:43

Merhaba Muhammet Sami,

 

Hatayı buradan tam olarak çıkaramadım, kodlarını yollarsan belki yardımcı olabilirm ayrıca bir tahmin olarak herhangi bir döngü kullandın mı kodlarında, eğer sonsuz döngü oluşturmuşsan böyle bir hata almış alabilirsin. 

İyi çalışmalar dilerim.